package lab02.test06;

//梯形

public class Ladder {

    //属性：上底、下底、高、面积
    double upperSide;
    double lowerSide;
    double height;
    double area;

    //行为：返回面积
    double area(){
        return (upperSide+lowerSide)*height/2;
    }

}


